Optimal. Leaf size=34 \[ \frac {\tan (c+d x)}{a d}-\frac {i \tan ^2(c+d x)}{2 a d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 34, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.042, Rules used = {3568}
\begin {gather*} \frac {\tan (c+d x)}{a d}-\frac {i \tan ^2(c+d x)}{2 a d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3568
Rubi steps
\begin {align*} \int \frac {\sec ^4(c+d x)}{a+i a \tan (c+d x)} \, dx &=-\frac {i \text {Subst}(\int (a-x) \, dx,x,i a \tan (c+d x))}{a^3 d}\\ &=\frac {\tan (c+d x)}{a d}-\frac {i \tan ^2(c+d x)}{2 a d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.24, size = 35, normalized size = 1.03 \begin {gather*} \frac {\sec (c+d x) (-i \sec (c+d x)+2 \sec (c) \sin (d x))}{2 a d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.72, size = 30, normalized size = 0.88
method | result | size |
risch | \(\frac {2 i}{d a \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right )^{2}}\) | \(23\) |
derivativedivides | \(-\frac {i \left (\frac {\left (\tan ^{2}\left (d x +c \right )\right )}{2}+i \tan \left (d x +c \right )\right )}{d a}\) | \(30\) |
default | \(-\frac {i \left (\frac {\left (\tan ^{2}\left (d x +c \right )\right )}{2}+i \tan \left (d x +c \right )\right )}{d a}\) | \(30\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.29, size = 27, normalized size = 0.79 \begin {gather*} -\frac {i \, \tan \left (d x + c\right )^{2} - 2 \, \tan \left (d x + c\right )}{2 \, a d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.36, size = 33, normalized size = 0.97 \begin {gather*} \frac {2 i}{a d e^{\left (4 i \, d x + 4 i \, c\right )} + 2 \, a d e^{\left (2 i \, d x + 2 i \, c\right )} + a d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} - \frac {i \int \frac {\sec ^{4}{\left (c + d x \right )}}{\tan {\left (c + d x \right )} - i}\, dx}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.50, size = 27, normalized size = 0.79 \begin {gather*} -\frac {i \, \tan \left (d x + c\right )^{2} - 2 \, \tan \left (d x + c\right )}{2 \, a d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 3.33, size = 25, normalized size = 0.74 \begin {gather*} -\frac {\mathrm {tan}\left (c+d\,x\right )\,\left (-2+\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}{2\,a\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________